//
//  Int+Additions.swift
//  live
//
//  Created by melvyn on 2018/11/20.
//  Copyright © 2018 NEET. All rights reserved.
//

import Foundation

extension Int {
    
    var timeDescription: String {
        let hours = self / 3600
        let minutes = (self / 60) % 60
        let seconds = self % 60
        
        return "\(hours < 10 ? "0\(hours)" : "\(hours)"):\(minutes <  10 ? "0\(minutes)" : "\(minutes)"):\(seconds < 10 ? "0\(seconds)" : "\(seconds)")"
    }
}
